package com.kou.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import lombok.Data;

/**
 * 文件访问日志表
 *
 * @TableName op_file_access_log
 */
@TableName(value = "op_file_access_log")
@Data
public class FileAccessLogDO {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     *
     */
    private Long fileId;

    /**
     * 类型：preview / download / share
     */
    private String accessType;

    /**
     *
     */
    private Date accessTime;

    /**
     * 访问IP
     */
    private String ipAddress;

    /**
     * 访问用户
     */
    private String accessUsers;
}